import 'package:yysk_app/env/env.dart';

// 支付中台Pay
class PayUrl {
  static String baseUrl = Env.envConfig.envHttpUrl;
  //唯一user请求获取支付凭证x-token
  static String tokenApply =
      '$baseUrl/user/web/v1/pay/tokenApply'; // 获取支付中台token

  //前台接口权限接口
  static String accessInfoQuery =
      '$baseUrl/pay/web/v1/access/info_query'; // 权限信息查询  订单支付第一步
  //支付接口
  static String calcWithdrawAmount =
      '$baseUrl/pay/web/v1/payment/calcWithdrawAmount'; // 计算到账金额
  static String deposit = '$baseUrl/pay/web/v1/payment/deposit'; //充值
  static String orderPay = '$baseUrl/pay/web/v1/payment/order_pay'; //订单支付
  static String orderPayConfirm =
      '$baseUrl/pay/web/v1/payment/order_pay_confirm'; //订单支付确认。汇付支付需要
  static String orderPayQuery =
      '$baseUrl/pay/web/v1/payment/order_pay_query'; //订单支付查询
  static String queryWithdrawRule =
      '$baseUrl/pay/web/v1/payment/queryWithdrawRule'; //提现规则查询
  static String withdraw =
      '$baseUrl/pay/web/v1/payment/withdraw'; //提现(此接口需根据三方支付确定，有些需要申请+确认)
  static String withdrawQuery =
      '$baseUrl/pay/web/v1/payment/withdrawQuery'; //提现结果查询
  // 收银台
  static String bankQuotaQuery =
      '$baseUrl/pay/web/v1/cashier/bank_quota_query'; //根据支付渠道查询银行限额
  static String infoQuery =
      '$baseUrl/pay/web/v1/cashier/info_query'; //查询收银台信息  订单支付第二步（第一步异步后走）
  static String routeQuery =
      '$baseUrl/pay/web/v1/cashier/route_query'; // 查询订单支付路由 订单支付第三步（第一步异步后走）
  //用户开户模块
  static String listPayCertification =
      '$baseUrl/pay/web/v1/user/listPayCertification'; // 获取开户列表
  //获取智付钱包页面
  static String dinPayWallet =
      '$baseUrl/pay/web/v1/user/wallet/details'; // 获取智付钱包页面

  //获取智付钱包页面是否开通成功
  static String dinPayWalletIsSucceed =
      '$baseUrl/pay/web/v1/user/wallet/registerQuery'; // 获取智付钱包页面是否开通成
  static String registerApply =
      '$baseUrl/pay/web/v1/user/registerApply'; //用户-企业-个体工商户 开户申请
  static String registerApplyUrl =
      '$baseUrl/pay/web/v1/user/register_apply/url'; //开户申请：页面
  static String registerDetailQuery =
      '$baseUrl/pay/web/v1/user/register_detail_query'; //开户详细信息查询
  static String registerQuery =
      '$baseUrl/pay/web/v1/user/register_query'; //开户状态查询
  //用户绑卡模块
  static String bankCardBind =
      '$baseUrl/pay/web/bankCard/bind'; // 支付渠道绑定银行卡，返回绑卡id
  static String confirmBind = '$baseUrl/pay/web/bankCard/confirmBind'; //确认绑定银行卡
  static String bankCardList = '$baseUrl/pay/web/bankCard/list'; //获取支付渠道银行卡列表
  static String bankCardUnbind = '$baseUrl/pay/web/bankCard/unbind'; //解绑银行卡
  //用户钱包
  static String resetPasswordApply =
      '$baseUrl/pay/web/v1/wallet/reset_password_apply'; //设置-重置交易密码申请
  //账单模块
  static String detailDeposit =
      '$baseUrl/pay/web/v1/bill/detail/deposit'; //账单明细：充值
  static String detailRefund =
      '$baseUrl/pay/web/v1/bill/detail/refund'; //账单明细：退款
  static String detailSplit = '$baseUrl/pay/web/v1/bill/detail/split'; //账单明细：分账
  static String detailTrade = '$baseUrl/pay/web/v1/bill/detail/trade'; //账单明细：交易
  static String detailWithdraw =
      '$baseUrl/pay/web/v1/bill/detail/withdraw'; //账单明细：提现
  static String billPage = '$baseUrl/pay/web/v1/bill/page'; //账单分页查询
  static String billRebuild = '$baseUrl/pay/web/v1/bill/rebuild'; //账单重建：慎用
  static String isBind =
      '$baseUrl/pay/web/bankCard/checkBind'; //检查银行卡绑定，true-已绑定过 false-未绑定过
  static String getWalletBalance =
      '$baseUrl/pay/web/v1/user/getWalletBalance'; //钱包余额查询
  static String realNameQuery =
      '$baseUrl/pay/web/v1/user/real_name_query'; //实名信息查询
  static String listBank = '$baseUrl/pay/web/bankCard/listBank'; //获取支付渠道银行列表
  static String listBranchBank =
      '$baseUrl/pay/web/bankCard/listBranchBank'; //获取支付渠道银行支行列表
  static String getPlatWalletBalance =
      '$baseUrl/pay/web/v1/wallet/getPlatWalletBalance'; //平台钱包余额查询
  static String pagePlatWalletFlow =
      '$baseUrl/pay/web/v1/wallet/pagePlatWalletFlow'; //分页查询平台钱包流水
  static String pageWithdraw = '$baseUrl/pay/web/v1/bill/pageWithdraw'; //分页查询提现
  static String queryRechangePrices =
      '$baseUrl/pay/web/v1/cashier/query_recharge_prices'; //获取余额充值金额列表
  static String paymentDeposit = '$baseUrl/pay/web/v1/payment/deposit'; //充值
}
